package com.hmall.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hmall.user.pojo.Address;
import com.hmall.user.pojo.User;

import java.util.List;

public interface UserService extends IService<User> {
    /**
     * 根据id查找地址
     * @param uid
     * @return
     */
    List<Address> findAddressByUserId(Long uid);

    /**
     * 根据地址id查找地址
     * @param addressId
     * @return
     */
    Address findAddressByAddressId(String addressId);

    /**
     * 根据用户id查询用户信息
     * @param
     * @return
     */
    User findUserByUserId(Long userId);

    void updateBalance(Long totalFee);
}
